<?php
class Context {
	var $request;
	var $smarty;
	var $config;
	
	var $properties = array();
	
	function __construct(&$request, &$smarty, &$config) {
		$this->request = &$request;
		$this->smarty = &$smarty;
		$this->config = &$config;
	}
	
	function setProperty($propertiesName, &$value) {
		$this->properties[$propertiesName] = &$value;
		if ($this->smarty) $this->smarty->assign($propertiesName, &$value);
	}
	function &getProperty($propertiesName) {
		return $this->properties[$propertiesName];
	}
}
?>